package com.itlaobing.aop.schema;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;

import java.time.LocalDateTime;
import java.util.logging.Logger;

public class TimeAdvice {
    private Logger logger = Logger.getLogger( this.getClass().getName() );

    public void timeBefore(JoinPoint point){
        Signature s = point.getSignature();
        String name = s.getName() ;
        logger.info( LocalDateTime.now().toString() + "[ " + name + " ]");
    }
}
